﻿<%@ Page Title="【个人中心】- 兑换记录" Language="C#" MasterPageFile="~/APP_Master/MasterPage_Personal.master"
    AutoEventWireup="true" CodeFile="per_exchange_huodong.aspx.cs" Inherits="per_exchange_huodong" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <!--Right-->
    <div class="per_right_con">
        <!--exNav-->
        <ul class="per_ex_nav">
            <li><a href="per_exchange_detailed.aspx?p=5">通用金币</a></li>
            <li><a href="per_exchange_huodong.aspx?p=5" class="cur">活动金币</a><span class="per_n"><%if (userOrder != null)
                                                                                                    {%><%=userOrder.Rows.Count%><%}
                                                                                                                                    else
                                                                                                                                    { %>0<%} %></span></li>
            <li><a href="per_exchange_guoqi.aspx?p=5">已用完 | 过期</a></li>
        </ul>
        <!--exNav-->
        <div class="per_pre_record_t">
            <b>活动红包</b>
        </div>
        <ul class="per_ex_title_ul">
            <li style="width: 15%">红包名称</li>
            <li style="width: 15%">总金额</li>
            <li style="width: 15%">剩余金额</li>
            <li style="width: 15%">获取日期</li>
            <li style="width: 15%">过期日期</li>
            <li style="width: 15%">适用范围</li>
            <li style="width: 10%">明细</li>
        </ul>
        <%if (userOrder != null && userOrder.Rows.Count > 0)
            {
                for (int i = 0; i < userOrder.Rows.Count; i++)
                { %>
        <ul class="per_integral_con_ul">
            <li style="width: 15%"><%=userOrder.Rows[i]["Title"]%></li>
            <li style="width: 15%"><%=userOrder.Rows[i]["Money"]%></li>
            <li style="width: 15%"><%=userOrder.Rows[i]["RemainMoney"]%></li>
            <li style="width: 15%"><%=Convert.ToDateTime(userOrder.Rows[i]["ExchangeTime"]).ToString("yyyy-MM-dd")%></li>
            <li style="width: 15%"><%=Convert.ToDateTime(userOrder.Rows[i]["EndTime"]).ToString("yyyy-MM-dd")%></li>
            <li style="width: 15%">用于购彩</li>
            <li style="width: 10%"><a href="">查看明细</a></li>
        </ul>
        <%}
            }
            else
            { %>
        <ul class="per_integral_con_ul">

            <div style="text-align: center">暂无记录</div>
        </ul>
        <%}%>
        <div class="sabrosus">
            <webdiyer:AspNetPager SubmitButtonClass="buttons" ID="AspNetPager1"
                runat="server" AlwaysShow="True" FirstPageText="首页"
                NextPageText="下一页" PrevPageText="前一页" LastPageText="尾页" PageSize="8"
                OnPageChanged="AspNetPager1_PageChanged">
            </webdiyer:AspNetPager>
        </div>
        <div class="per_r_infor">
        </div>
    </div>
    <!--Right-->
    <div class="per_bg_bottom"></div>
    </div>
    <!--Content-->
</asp:Content>
